﻿using System;

namespace CrazyTalk.Models
{
    //UserInfo
    public class UserInfo
    {
        /// <summary>
        /// 自增NO用户数字ID
        /// </summary>
        public int seqno { get; set; }
        /// <summary>
        /// 用戶ID
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// 昵稱
        /// </summary>
        public string NickName { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealityName { get; set; }
        /// <summary>
        /// 积分
        /// </summary>
        public int Integral { get; set; }
        /// <summary>
        /// 父用戶ID
        /// </summary>
        public string ParentId { get; set; }
        /// <summary>
        /// 身份编号
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 密碼Hash 值
        /// </summary>
        public string PswHash { get; set; }
        /// <summary>
        /// 密碼Hash種子
        /// </summary>
        public string PswSalt { get; set; }
        /// <summary>
        /// 密碼Hash算法標識
        /// </summary>
        public int PswFormat { get; set; }
        /// <summary>
        /// 密碼過期日期
        /// </summary>
        public DateTime? PswExpiredDate { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        public int Province { get; set; }
        /// <summary>
        /// 市(没有填-1)
        /// </summary>
        public int City { get; set; }
        /// <summary>
        /// 区(没有填-1)
        /// </summary>
        public int Area { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// QQ号码
        /// </summary>
        public string QQ { get; set; }
        /// <summary>
        /// 电邮
        /// </summary>
        public string EMail { get; set; }
        /// <summary>
        /// 固定电话
        /// </summary>
        public string TelPhone { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        public string Mobile { get; set; }
        /// <summary>
        /// 生日
        /// </summary>
        public DateTime? Birthday { get; set; }
        /// <summary>
        /// 身份证
        /// </summary>
        public string IDcards { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string HeadImg { get; set; }
        /// <summary>
        /// 0：男 1：女 2：保密
        /// </summary>
        public int Sex { get; set; }
        /// <summary>
        /// 登錄IP
        /// </summary>
        public string LoginIp { get; set; }
        /// <summary>
        /// 登錄日期
        /// </summary>
        public DateTime? LoginTime { get; set; }
        /// <summary>
        /// 最后登錄IP
        /// </summary>
        public string LastLoginIp { get; set; }
        /// <summary>
        /// 最后登錄日期
        /// </summary>
        public DateTime? LastLoginTime { get; set; }
        /// <summary>
        /// 最后登录的游戏
        /// </summary>
        public int? LastLoginGame { get; set; }
        /// <summary>
        /// 最后登录游戏的区服
        /// </summary>
        public int? GameArea { get; set; }
        /// <summary>
        /// 最后登录的游戏时间
        /// </summary>
        public DateTime? LastLoginGameTime { get; set; }
        /// <summary>
        /// 總額度
        /// </summary>
        public decimal AmountTotal { get; set; }
        /// <summary>
        /// 已使用額度
        /// </summary>
        public decimal AmountInUse { get; set; }
        /// <summary>
        /// 可用余额
        /// </summary>
        public decimal Balance { get; set; }
        /// <summary>
        /// 信用额度
        /// </summary>
        public decimal Credit { get; set; }
        /// <summary>
        /// 用戶狀態（0：正常， 2：冻结， 4：禁用，8：暂停，16：暫停連鎖，32：停用連鎖，64：审核中,128：审核驳回,256:退出网吧冻结(针对推广员转网吧)），512：银行卡审核中  1024:新加盟推广员, 2048:申请绑定网吧审核中, 4096：退出网吧绑定审核中
        /// </summary>
        public int UserStatus { get; set; }
        /// <summary>
        /// 解除冻结的时间
        /// </summary>
        public DateTime? UnFreezeTime { get; set; }
        /// <summary>
        /// 最后更新用戶ID
        /// </summary>
        public string StampUserId { get; set; }
        /// <summary>
        /// 帳戶有效期
        /// </summary>
        public DateTime? ExpiredDate { get; set; }
        /// <summary>
        /// 新建日期
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 最后修改日期
        /// </summary>
        public DateTime LastUpdateTime { get; set; }
        /// <summary>
        /// 当天修改用户信息的次数，前台使用
        /// </summary>
        public int UpdateCount { get; set; }
        /// <summary>
        /// 0:任何未验 1:手机验证成功 2:邮箱验证成功证 memeber使用 4:为独代
        /// </summary>
        public int ValidateStatus { get; set; }
        /// <summary>
        /// 手机绑定时生成的验证码 memeber使用
        /// </summary>
        public string ValidateCode { get; set; }

        #region 扩展属性

        ///// <summary>
        ///// 此用户应用的安全设置
        ///// </summary>		
        public string SecuritySet { get; set; } 

        #endregion
    }
}

